package com.rjgc.title.model.entity.apply;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.rjgc.title.model.base.BaseApplyEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 申报表
 *
 * @program: title-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-26 18:27
 **/
@Data
@ApiModel(description = "Declare")
@TableName("declare")
public class Declare implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private Long year;

    // 职称
    @ApiModelProperty(value = "职称")
    @TableField("title")
    private String title;

    // 级别
    @ApiModelProperty(value = "级别")
    @TableField("level")
    private String level;

    // 系列
    @ApiModelProperty(value = "系列")
    @TableField("series")
    private String series;

    // 专业
    @ApiModelProperty(value = "专业")
    @TableField("major")
    private String major;
    // 方式
    @ApiModelProperty(value = "方式")
    @TableField("mode")
    private String mode;


    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @JsonIgnore
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
}
